]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
WorkspaceThumnail: fix typo
authorGiovanni Campagna <gcampagna@src.gnome.org>
Sun, 20 Nov 2011 10:57:29 +0000 (11:57 +0100)
committerGiovanni Campagna <gcampagna@src.gnome.org>
Mon, 21 Nov 2011 20:59:09 +0000 (21:59 +0100)
An if is missing, causing the subsequent expression to evaluate to
nothing, and the invocation it should be protect to be unconditional.

js/ui/workspaceThumbnail.js

index 3885d85ccf2af019653a837d3eb6875030e1e5ca..504d32bc3e6a53cf658e81bec1b814442aeab875 100644 (file)
@@ -597,7 +597,7 @@ ThumbnailsBox.prototype = {
             // ... and bam, a workspace, good as new.
             source.metaWindow.change_workspace_by_index(newWorkspaceIndex,
                                                         true, time);
-        else (source.shellWorkspaceLaunch)
+        else if (source.shellWorkspaceLaunch)
             source.shellWorkspaceLaunch({ workspace: newWorkspaceIndex,
                                           timestamp: time });